import instance from "@/utils/http.js";
import qs from "qs";

export default{
  
  listNurseLevel(data) {
    return instance.get("/nurselevel/listNurseLevel?levelStatus="+data);
  },
  addNurseLevel(data) {
    return instance.post("/nurselevel/addNurseLevel",data);
  },
  updateNurseLevel(data) {
    return instance.put("/nurselevel/updateNurseLevel",data);
  },
  addItemToLevel(data) {
    return instance.post("/nurselevel/addItemToLevel",data);
  },
  listNurseItemByLevel(data) {
    return instance.get("/nurselevel/listNurseItemByLevel?"+qs.stringify(data));
  },
  deleteItemToLevel(data){
    return instance.delete("/nurselevel/removeNurseLevelItem?"+qs.stringify(data));
  }
}